package com.easytouch.vm.service;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;

import com.easytouch.core.PayLongThread;

/**
 * Created by gulin on 2017/7/21.
 */

public class PayLongService extends Service {

    private PayLongThread mPayLongThread;

    @Override
    public IBinder onBind(Intent intent) {
        return null;
    }

    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        if (mPayLongThread != null) {
            return super.onStartCommand(intent, flags, startId);
        }

        mPayLongThread = PayLongThread.getInstance();
        return super.onStartCommand(intent, flags, startId);
    }
}